<extend name="Public:base"/>

<block name="main">
<div id="yzh-content" class="col-xs-12">
    <div class="main-title">
        <h2>广告列表</h2>
    </div>

    <div class="table-actions">
        <a href="{:U('slide/add')}" class="btn btn-sm btn-primary env-class">新增</a>

    </div>


    <form name="myform" action="" method="post">
        <table class="table">
            <thead>
                <tr>
                    <th width="40">ID</th>
                    <th align="left">名称</th>
                    <th width="100" align="left">幻灯片宽</th>
                    <th width="100" align="left">幻灯片高</th>
                    <th width="100" class="center">状态</th>
                    <th width="180" class="center">管理操作</th>
                </tr>
            </thead>
            <tbody>
                <volist name="list" id="vo" key="k">
                <tr>
                    <td class="center">{$vo['id']}</td>
                    <td align="left">{$vo['name']}</td>
                    <td align="left">{$vo['width']}</td>
                    <td align="left">{$vo['height']}</td>
                    <td class="center"><eq name="vo['status']" value="1">
                        {:L('enable')}
                        <else />
                        {:L('disable')}
                        </eq></td>
                    <td class="center">
                        <a class="btn btn-xs btn-primary" href="{:U('Slide/picmanage',array('fid'=>$vo['id']))}">图片管理</a>
                        <a class="btn btn-xs btn-info" href="{:U('Slide/edit',array('id'=>$vo['id']))}">编辑</a>
                        <a class="btn btn-xs btn-danger" href="javascript:confirm_delete('{:U('Slide/delete',array('id'=>$vo['id']))}')">删除</a>
                    </td>
                </tr>
                </volist>
            </tbody>
        </table>

    </form>

    <div id="pages">{$pages}</div>
</div>
</block>